package com.shuzhi.stationarysource.modules.job.domain;


import com.shuzhi.stationarysource.common.jpa.model.AbstractAuditModel;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

/**
 * <p>项目名称: sdbd-parent </p>
 * <p>描述: 污染源公司信息实体类 </p>
 * <p>创建时间: 2018/9/28 14:07</p>
 * <p>公司信息: LeadingSoft</p>
 *
 * @author Changqing LI
 * @version v1.0
 */
@Entity
@Table(name = "wry_base_info")
public class WryBaseInfo extends AbstractAuditModel {
    //排污单位关键ID
    private Long wryKeyId;
    // 生产经营场所地址 VARCHAR(500)
    @Column(length = 500)
    private String operAddress;
    // 所属省份代码 VARCHAR(12)
    @Column(length = 12)
    private String p_state;
    // 所属地市代码 VARCHAR(12)
    @Column(length = 12)
    private String p_city;
    // 所属区县代码 VARCHAR(12)
    @Column(length = 12)
    private String p_district;
    // 注册地址 VARCHAR(500)
    @Column(length = 500)
    private String regAddress;
    // 邮政编码 VARCHAR(6)
    @Column(length = 6)
    private String postalCd;
    // 行业代码 VARCHAR(5)
    @Column(length = 50)
    private String hyid;
    // 行业名称 VARCHAR(50)
    @Column(length = 50)
    private String hyname;
    // 经营范围 VARCHAR(4000)
    @Column(length = 4000)
    private String businessScope;
    // 是否投产
    private Integer isopera;
    // 投产日期
    @Temporal(TemporalType.TIMESTAMP)
    private Date operatime;
    // 隶属关系 INT
    private Integer regulatorLevel;
    // 生产经营场所经度 VARCHAR(50)
    @Column(length = 50)
    private String longitude;
    // 生产经营场所纬度 VARCHAR(50)
    @Column(length = 50)
    private String latitude;
    // 法人代表 VARCHAR(50)
    @Column(length = 50)
    private String legalPerson;
    //法人代表证件号
    @Column(length = 100)
    private String legalPersonId;
    // 固定电话 VARCHAR(20)
    @Column(length = 20)
    private String phoneNum;
    // 企业规模 INT
    private Integer entScale;
    // 是否上市公司 INT
    private Integer islisted;
    // 企业邮箱 VARCHAR(50)
    @Column(length = 200)
    private String entEmail;
    // 是否注销 INT
    private Integer iscancel;
    // 排污许可发放日期 TIMESTAMP
    @Temporal(TemporalType.TIMESTAMP)
    private Date permitDatetime;
    // 主管部门代码 VARCHAR(50)
    @Column(length = 50)
    private String organCode;
    // 环保联系人 VARCHAR(50)
    @Column(length = 50)
    private String engineer;
    // 环保联系人电话 VARCHAR(20)
    @Column(length = 150)
    private String envTelephone;
    // 注册资本
    private Long regcap;
    // 营业期限（年限）
    private Long opfyears;
    // 核准日期
    @Temporal(TemporalType.TIMESTAMP)
    private Date apprdate;
    // 吊销时间
    @Temporal(TemporalType.TIMESTAMP)
    private Date revdate;
    // 注销时间
    @Temporal(TemporalType.TIMESTAMP)
    private Date candate;
    //是否为已推送数据
    @Column(length = 150)
    private String isbsts;
    @Column(length = 10)
    private String operStatus;
    @OneToOne
    @JoinColumn(name = "wryKeyId", referencedColumnName = "id", insertable = false, updatable = false)
    private WryKeyInfo wryKeyInfo;

    public Long getWryKeyId() {
        return wryKeyId;
    }

    public void setWryKeyId(Long wryKeyId) {
        this.wryKeyId = wryKeyId;
    }

    public String getOperAddress() {
        return operAddress;
    }

    public void setOperAddress(String operAddress) {
        this.operAddress = operAddress;
    }

    public String getP_state() {
        return p_state;
    }

    public void setP_state(String p_state) {
        this.p_state = p_state;
    }

    public String getP_city() {
        return p_city;
    }

    public void setP_city(String p_city) {
        this.p_city = p_city;
    }

    public String getP_district() {
        return p_district;
    }

    public void setP_district(String p_district) {
        this.p_district = p_district;
    }

    public String getRegAddress() {
        return regAddress;
    }

    public void setRegAddress(String regAddress) {
        this.regAddress = regAddress;
    }

    public String getPostalCd() {
        return postalCd;
    }

    public void setPostalCd(String postalCd) {
        this.postalCd = postalCd;
    }

    public String getHyid() {
        return hyid;
    }

    public void setHyid(String hyid) {
        this.hyid = hyid;
    }

    public String getHyname() {
        return hyname;
    }

    public void setHyname(String hyname) {
        this.hyname = hyname;
    }

    public String getBusinessScope() {
        return businessScope;
    }

    public void setBusinessScope(String businessScope) {
        this.businessScope = businessScope;
    }

    public Integer getIsopera() {
        return isopera;
    }

    public void setIsopera(Integer isopera) {
        this.isopera = isopera;
    }

    public Date getOperatime() {
        return operatime;
    }

    public void setOperatime(Date operatime) {
        this.operatime = operatime;
    }

    public Integer getRegulatorLevel() {
        return regulatorLevel;
    }

    public void setRegulatorLevel(Integer regulatorLevel) {
        this.regulatorLevel = regulatorLevel;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getLegalPersonId() {
        return legalPersonId;
    }

    public void setLegalPersonId(String legalPersonId) {
        this.legalPersonId = legalPersonId;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Integer getEntScale() {
        return entScale;
    }

    public void setEntScale(Integer entScale) {
        this.entScale = entScale;
    }

    public Integer getIslisted() {
        return islisted;
    }

    public void setIslisted(Integer islisted) {
        this.islisted = islisted;
    }

    public String getEntEmail() {
        return entEmail;
    }

    public void setEntEmail(String entEmail) {
        this.entEmail = entEmail;
    }

    public Integer getIscancel() {
        return iscancel;
    }

    public void setIscancel(Integer iscancel) {
        this.iscancel = iscancel;
    }

    public Date getPermitDatetime() {
        return permitDatetime;
    }

    public void setPermitDatetime(Date permitDatetime) {
        this.permitDatetime = permitDatetime;
    }

    public String getOrganCode() {
        return organCode;
    }

    public void setOrganCode(String organCode) {
        this.organCode = organCode;
    }

    public String getEngineer() {
        return engineer;
    }

    public void setEngineer(String engineer) {
        this.engineer = engineer;
    }

    public String getEnvTelephone() {
        return envTelephone;
    }

    public void setEnvTelephone(String envTelephone) {
        this.envTelephone = envTelephone;
    }

    public Long getRegcap() {
        return regcap;
    }

    public void setRegcap(Long regcap) {
        this.regcap = regcap;
    }

    public Long getOpfyears() {
        return opfyears;
    }

    public void setOpfyears(Long opfyears) {
        this.opfyears = opfyears;
    }

    public Date getApprdate() {
        return apprdate;
    }

    public void setApprdate(Date apprdate) {
        this.apprdate = apprdate;
    }

    public Date getRevdate() {
        return revdate;
    }

    public void setRevdate(Date revdate) {
        this.revdate = revdate;
    }

    public Date getCandate() {
        return candate;
    }

    public void setCandate(Date candate) {
        this.candate = candate;
    }

    public String getIsbsts() {
        return isbsts;
    }

    public void setIsbsts(String isbsts) {
        this.isbsts = isbsts;
    }

    public String getOperStatus() {
        return operStatus;
    }

    public void setOperStatus(String operStatus) {
        this.operStatus = operStatus;
    }

    public WryKeyInfo getWryKeyInfo() {
        return wryKeyInfo;
    }

    public void setWryKeyInfo(WryKeyInfo wryKeyInfo) {
        this.wryKeyInfo = wryKeyInfo;
    }

    @Override
    public String toString() {
        return "WryBaseInfo{" +
                "wryKeyId=" + wryKeyId +
                ", operAddress='" + operAddress + '\'' +
                ", p_state='" + p_state + '\'' +
                ", p_city='" + p_city + '\'' +
                ", p_district='" + p_district + '\'' +
                ", regAddress='" + regAddress + '\'' +
                ", postalCd='" + postalCd + '\'' +
                ", hyid='" + hyid + '\'' +
                ", hyname='" + hyname + '\'' +
                ", businessScope='" + businessScope + '\'' +
                ", isopera=" + isopera +
                ", operatime=" + operatime +
                ", regulatorLevel=" + regulatorLevel +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", legalPerson='" + legalPerson + '\'' +
                ", legalPersonId='" + legalPersonId + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", entScale=" + entScale +
                ", islisted=" + islisted +
                ", entEmail='" + entEmail + '\'' +
                ", iscancel=" + iscancel +
                ", permitDatetime=" + permitDatetime +
                ", organCode='" + organCode + '\'' +
                ", engineer='" + engineer + '\'' +
                ", envTelephone='" + envTelephone + '\'' +
                ", regcap=" + regcap +
                ", opfyears=" + opfyears +
                ", apprdate=" + apprdate +
                ", revdate=" + revdate +
                ", candate=" + candate +
                ", isbsts='" + isbsts + '\'' +
                ", operStatus='" + operStatus + '\'' +
                ", wryKeyInfo=" + wryKeyInfo +
                '}';
    }
}
